package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * “项目操作记录”
 * </p>
 *
 * @author sy
 * @since 2023-06-30
 */
@Getter
@Setter
@TableName("dragon_operation_record")
public class OperationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 项目id
     */
    private Integer projectId;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operationTime;

    /**
     * 操作人
     */
    private Integer adminId;

    /**
     * 操作人名称
     */
    @TableField(exist = false)
    private String username;

    /**
     * 操作描述
     */
    private String comment;

    /**
     * 审核备注原因
     */
    private String remark;

    /**
     * 操作类型
     */
    private Integer actionType;

    /**
     * 流程类型
     */
    private Integer operationType;


}
